package 建造者模式;

public class 建造者模式 {
    public static void main(String[] args) {
        HouseBuilder concreteBuilder=new ConcreteHouseBuilder();
        Director director1 = new Director(concreteBuilder);
        House house = director1.constructHouse();
        System.out.println("concreteBuilder:"+house);

        HouseBuilder luxuryBuilder=new LuxuryHouseBuilder();
        Director director=new Director(luxuryBuilder);
        System.out.println("luxuryBuilder:"+director.constructHouse());
    }
}
